class ResponesCode {
  ///链接超时
  static const int connectTimeout = 1000;
  static const String connectTimeoutMsg = "网络连接超时";

  ///请求超时
  static const int sendTimeout = 1001;
  static const String sendTimeoutMsg = "请求接口超时";

  ///响应超时
  static const int receiveTimeout = 1002;
  static const String receiveTimeoutMsg = "接口响应超时";

  ///响应错误
  static const int badResponse = 1003;
  static const String badResponseMsg = "接口响应错误";

  ///非法请求
  static const int badCertificateError = 1004;
  static const String badCertificateErrorMsg = "非法请求";

  ///响应异常
  static const int responseError = 1005;
  static const String responseErrorMsg = "响应异常";

  ///请求取消
  static const int cancelError = 1006;
  static const String cancelErrorMsg = "请求取消";

  ///连接错误
  static const int connectionError = 1007;
  static const String connectionErrorMsg = "网络连接异常，请稍后重试！";

  ///服务器异常
  static const int serviceError = 1008;
  static const String serviceErrorMsg = "服务器异常，请稍后重试！";

  ///未知错误
  static const int unknownError = 9999;
  static const String unknownErrorMsg = "未知错误，请稍后重试！";

  ///数据解析异常
  static const int dataParseError = 2001;
  static const String dataParseErrorMSG = "数据解析异常";

  ///成功代码
  static const int successCode = 200;

  //Unauthorized
  static const int unauthorizedError = 401;
  static const String unauthorizedErrorMSG = "Token已经失效，请重新登录";

  //500错误
  static const int serverError = 500;
  static const String serverErrorMSG = "服务器异常，请稍后重试！";

  ///返回编码
  static const String codeTag = "code";

  ///提示信息
  static const String msgTag = "msg";

  ///返回数据体
  static const String dataTag = "data";
}
